package com.xbongbong.pro.statistic.pojo.dto;

import com.alibaba.fastjson.JSONArray;
import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.enums.EnableEnum;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import com.xbongbong.pro.statistic.pojo.LinkageListPojo;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zyy
 * @date 2022/12/07/ 14:29:00
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class LinkageSaveDTO extends BaseDTO {
    private static final long serialVersionUID = -6506844842743411229L;

    /**
     * 自定义、系统标志
     * @see com.xbongbong.pro.statistic.enums.StatisticsTypeEnum
     */
    @NotNull(message = "{dto.msg.chartPublish.statisticsType.NotNull}")
    private Integer statisticsType;
    /**
     * 图表id
     */
    @NotNull(message = "{dto.msg.chartId.NotNull}")
    private Long id;

    /**
     * 图表类型
     */
    @NotNull(message = "{dto.msg.chartType.NotNull}")
    private Integer chartType;

    /**
     * 已选图表数组
     */
    private JSONArray validChartList;


    /**
     * 删除标记
     * 该字段不与前端交互，
     * @see com.xbongbong.paas.enums.DelEnum
     */
    private Integer del;

    /**
     * 图表是否启用 1开启，0未开启；初始化时默认1
     * 该字段不与前端交互
     */
    private Integer enable;


    public LinkageSaveDTO(){
        this.del = DelEnum.NORMAL.getDel();
        this.enable = EnableEnum.OPEN.getCode();
    }


}
